package com.godpaper.the2tigers.model
{
	

	public class ConfigModel
	{
		// Singleton instance of ConfigsModel
		private static var instance:ConfigModel;
		public function ConfigModel(access:Private)
		{
			if (access != null)
			{
				if (instance == null)
				{				
					instance = this;
				}
			}
			else{
				throw new Error( "ConfigsModel.SINGLETON_EXCEPTION", "@ConfigsModel" );
			}
		}
		
		/**
		 * 
		 * @return the Singleton instance of ConfigsModel
		 * 
		 */		
		public static function getInstance():ConfigModel
		{
			if(instance == null)
			{
				instance = new ConfigModel(new Private());
			}
			return instance;
		}
//--------------------------------------------------------------------------
//
//  Variables
//
//--------------------------------------------------------------------------	
		//configs(about pieces,gaskets,chessboard's configuration)
		[Bindable]public var PIECE_WIDTH:int = 80;
		[Bindable]public var PIECE_HEIGHT:int = 80;
		
		[Bindable]public var GASKET_WIDTH:int = 40;
		[Bindable]public var GASKET_HEIGHT:int = 40;
		[Bindable]public var GASKET_COLOR:uint = 0xFFFFFF;
		[Bindable]public var GASKET_ALPHA:Number = 0.1;
		[Bindable]public var GASKET_DISABLED_COLOR:uint = 0xFFFF00;
		
		[Bindable]public var CHESS_BOARD_WIDTH:int = 570;
		[Bindable]public var CHESS_BOARD_HEIGHT:int = 570;
	}
}
/**
 * Inner class which restricts contructor access to Private
 */
class Private 
{
	
}